package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocom.common.entity.base.EntityCardBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_device_info")
public class EntityXfDeviceInfo extends EntityCardBase implements Serializable {

	private static final long serialVersionUID = -4295480730638716961L;
	@TableId(value = "device_no", type = IdType.NONE)
	private String deviceNo;
	private Long comId;
	private String deviceName;
	private Integer pointId;
	private Integer deviceType;
	private Integer deviceVerType;
	private Integer status;
	private Integer deviceMode;
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date endTime;
	private String remark;
	private Integer listAdd;
	private Integer listAddTab;
	private Integer listDelete;
	private Integer listDeleteTab;
	private Integer listState;
	private Integer rsaState;
	private String rsaJobid;
	private Integer paraState;
	@TableField("code_pic_url")
	private String codePicUrl;
	private String accountCodePicUrl;
	private String paraJobid;
	private String appVer;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	private Date commTime;
	private String aiotNo;
	private Integer tollType;
	private Long oneAmountOn;
	private Long oneAmountOff;
	private Long allAmountOff;

	/**
	 * 人脸授权
	 */
	private String faceAuth;   // 1正式 2测试
	private Integer faceAuthType;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	private Date faceAuthTime;


	/**
	 * 消费类型编号
	 */
	private Integer consType;
	/**
	 * 风控参数状态， 0：不需要，1：需要
	 */
	private Integer fkparaState;
	/**
	 * 风控参数下传标识
	 */
	private String fkparaJobid;


	//菜单更新标识
	private Integer menuState;
	//菜单已下传版本，-1表示要全量下传菜单
	private Integer menuAdd;
	//菜单下传标识：最后一次下传版本
	private Integer menuAddTab;
	//菜单全量下传版本
	private Integer menuDelete;
	//菜单所属商户（0表示单位）
	private Integer menuMerchId;


	//异常白名单数据
	@TableField(exist = false)
	private Long faceErr = 0l;


}
